<template>
  <div id="add">
    <ul>
      <li v-for="(item) in arr" :key="item">
        {{item}} 
      </li>
     
    </ul>
    <button @click="dj">{{msg}}</button>
  </div>
</template>

<script>
export default {
      data() {
        return {
          msg:'走一走',
          arr:['鸣人','佐助','小樱','雏田']
        }
      },
      methods: {
        dj(){
          // console.log(1)
          this.arr.push(this.arr[0])
          this.arr.shift()
        }
      },

}
</script>

<style>

</style>